package com.lagou.service;

import com.lagou.bean.Person;
import com.lagou.repository.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service("personService")
public class Neo4jPersonService {
    @Autowired
    private PersonRepository personRepository;


    public List<Person> pathAll(String startName,String endName){
        return personRepository.pathAll(startName,endName);

    }

}
